package com.kelvem.saas.workbanch.ontology.address.model;

import com.kelvem.saas.workbanch.fsm.anno.entity.Many2One;
import com.kelvem.saas.workbanch.fsm.entity.Entity;
import com.kelvem.saas.workbanch.ontology.customer.model.CustomerEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.math.BigDecimal;

/**
 * 继承Entity, 获得其Event
 *
 * @author kelvem
 */
@Many2One(entityClazz = CustomerEntity.class, key ="customerId")
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class AddressEntity extends Entity {
    
    public Long customerId;
    protected String addressType;
    protected String sign;
    
    protected String name;
    protected String tel;
    protected String province;
    protected String city;
    protected String county;
    protected String areaCode;
    protected String addressDetail;
    
    protected BigDecimal lat;
    protected BigDecimal lng;
    protected String mapTag;
    protected String mapAddress;
    
    protected String memo;
}
